package clids.ex2.orders;

import java.util.LinkedList;
import java.util.TreeSet;

public class SizeOrder implements OrderInterface {


		//returns treeSet by file name order
		public TreeSet<String> orderFiles(LinkedList<String> listFilter) {
			
			TreeSet<String> tree = new TreeSet<String>(new OrderSizeComparator());
			for (String el : listFilter) {
				tree.add(el);
			}
			
			return tree;
		}
	}


